package com.oystertech.sportcms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.oystertech.sportcms.model.entity.Athlete;
import com.oystertech.sportcms.model.form.AthleteForm;

/**
 * 针对表【athlete(运动员表)】的数据库操作Service
 *
 * @author Oyster Cheung
 * @version 2023-09-05
 * @since 2023-10-23
 */
public interface AthleteService extends IService<Athlete> {
	/**
	 * 更新运动员资料
	 * @param id
	 * @param athleteForm
	 * @return
	 */
	boolean updateAthlete(Long id, AthleteForm athleteForm);

	/**
	 * 新增字典数据项
	 *
	 * @param athleteForm 运动员表单
	 * @return
	 */
	boolean saveAthlete(AthleteForm athleteForm);
}
